package com.xbongbong.rollback.service.impl.update;

import com.xbongbong.paas.domain.entity.PaasFormDataEntity;
import com.xbongbong.pro.domain.entity.ReRollBackEntity;
import com.xbongbong.rollback.factory.FormDataUpdateRollBackFactory;
import com.xbongbong.rollback.service.AbstractFormDataUpdateRollBackService;
import com.xbongbong.saas.enums.XbbRefTypeEnum;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author 吴峰
 * @date 2021/03/11 15:44
 */
@Service("customerUpdateRollBackServiceImpl")
public class CustomerUpdateRollBackServiceImpl extends AbstractFormDataUpdateRollBackService {

    @PostConstruct
    public void register() {
        FormDataUpdateRollBackFactory.FORM_DATA_UPDATE_ROLL_BACK_SERVICE_MAP.put(String.valueOf(XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode()), this);
    }


    @Override
    public void rollBack4Update(PaasFormDataEntity newPaasFormDataEntity, PaasFormDataEntity oldPaasFormData, Long dataId,
                                String corpid, Integer saasMark, Integer businessType, ReRollBackEntity reRollBackEntity) {

    }
}
